<template>
  <div class="b-track">
    <div>{{info.value.jzName}}（{{info.value.distanceM}}米）</div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  info: {
    type: Object,
    reqiured: true
  }
})
</script>
<style scoped lang="scss">
.b-track {
  cursor: pointer;
  text-align: center;
  flex-direction: column;
  position: absolute;
  top: -100px;
  left: 0;
  border-radius: 4px;
  z-index: 2;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  background: #03b87a80;
  box-shadow: 0 0 5px #000;
  opacity: 0.8;
  padding: 8px;
  font-size: 12px;
}

.success {
  color: var(--el-color-success);
}

.error {
  color: var(--el-color-danger);
}

.warning {
  color: var(--el-color-warning);
}

.icon-jizhan {
  color: #1affb2;
}

.icon-shebeichuanganqi {
  color: #fce310;
}

.icon-shexiangtou {
  color: #55ffef;
}

@keyframes col {
  0% {
    color: var(--el-color-danger);
    transform: scale(1);
    opacity: 1;
  }

  100% {
    color: var(--el-color-danger-light-8);
    transform: scale(3.5);
    opacity: 0;
  }
}
</style>
